package button;

public class Button {
	private String caption;
	private ClickListenner cl;

	public Button(String caption) {
		this.caption = caption;
	}

	public void addClic(ClickListenner cl) {
		this.cl = cl;
	}

	public void click() {
		System.out.println(caption + "被点击了");
		cl.clickDo();
	}
}
